package com.ychong.ychongwidget.ui

import android.os.Bundle
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.ychong.ychongwidget.R
import com.ychong.ychongwidget.databinding.ActivityLargeImageViewBinding

class LargeImageViewActivity:AppCompatActivity() {
    private var binding:ActivityLargeImageViewBinding?=null
    override fun onCreate(savedInstanceState: Bundle?) {
        window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_large_image_view)

        val inputStream = assets.open("qmsht.jpg")
        binding!!.largeImageView.setInputStream(inputStream)
    }
}